package com.sz.youban.dt.model;

public class MsgException extends RuntimeException
{
	private static final long serialVersionUID = 1L;
	private String msg;//自定义错误信息
	private int code;//自定义错误码
	
	

	public MsgException() {
		super();
	}

	public MsgException(int code, String msg) 
	{
		this.code = code;
		this.msg = msg;
	}

	public MsgException(String message) {
		super(message);
	}

	public MsgException(Throwable cause) {
		super(cause);
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}
	 
	
}
